import java.sql.SQLOutput;
import java.util.Scanner;

class moths{
    String name="lxc";
    String password="20040303";
    public void to(String usename,String usepassword){

        if(!usename.equals(name)){
           throw new RuntimeException("用户名字错误");
        }
       else if(!usepassword.equals(password)){
           throw new RuntimeException("密码错误");
        }
       else System.out.println("登陆成功");
    }
}
public class borad {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        while (in.hasNext()) {
            String putout = in.nextLine();
            int x = putout.lastIndexOf(" ") + 1;
            String sum = putout.substring(x);
            System.out.println(sum.length());
        }
    }
    public static void main1(String[] args) {
        moths moth=new moths();
        moth.to("sd","sd");
        moth.to("lxc","2004030");

    }
}
